<?php

namespace App\Modules\Admin\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class AdminMenuRole extends Model
{
    use SoftDeletes;

    protected $table = 'admin_menu_role';

    protected $fillable = ['menu_uid', 'role_uid'];

    protected $visible = ['menu_uid', 'role_uid'];

    public function menu()
    {
        return $this->hasMany(AdminMenu::class, 'menu_uid', 'menu_uid');
    }

}
